/**
 * @param {Number} xcount 数据个数
 * @param {Number} ycount 数据值范围
 */
export const mockData = (xcount = getRandom(10, 24), ycount = getRandom(100, 200)) => {
	let result = [];
	for(let i = 0; i < xcount; i += 1) {
		result.push({
			text: i,
			value: getRandom(0, ycount)
		})
	}
	return result;
}

const getRandom = (min, max) => {
	return Math.floor(Math.random() * (max - min + 1) + min);
}